#define _CRT_SECURE_NO_WARNINGS 1

class Solution {
public:
    vector<string> divideString(string s, int k, char fill) {
        vector<string> res;
        for (int i = 0; i < s.size(); i += k)
        {
            string str;
            for (int j = 0; j < k; j++)
            {
                str += (i + j) >= s.size() ? fill : s[i + j];
            }
            res.push_back(str);
        }
        return res;
    }
};